﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace haptic.src.engine.file
{
    public static class PathEx
    {
        public static string GetFullExtension(string sPath)
        {
            int iIndex = sPath.IndexOf('.');
            if (iIndex == -1)
                return "";
            else
                return sPath.Substring(iIndex, sPath.Length - iIndex);
            /*string sLastExtension = Path.GetExtension(sPath);
            if (sLastExtension == "")
                return "";
            string s2ndExtension = Path.GetExtension(Path.GetFileNameWithoutExtension(sPath));
            if (s2ndExtension == "")
                return sLastExtension;
            else
                return s2ndExtension + sLastExtension;*/
        }
    }
}
